﻿using Web.Model;

namespace Web.ViewModels
{
    public class NotificationSettingsModel
    {
        public int Id { get; set; }

        public bool NotifyOrganizerProjectCommented { get; set; }
        
        public bool NotifyAuthorCommentReplied { get; set; }

        public bool NotifyParticipantProjectUpcoming { get; set; }

        public bool NotifyOrganizerUserApplied { get; set; }

        public bool NotifyParticipantApplicationApproved { get; set; }

        public bool NotifyOrganizerIdeaApproved { get; set; }

        public bool NotifyAuthorNewsCommented { get; set; }

        public NotificationSettingsModel()
        { }

        public NotificationSettingsModel(User user)
        {
            Id = user.Id;
            NotifyOrganizerProjectCommented = user.NotifyOrganizerProjectCommented;
            NotifyAuthorCommentReplied = user.NotifyAuthorCommentReplied;
            NotifyParticipantProjectUpcoming = user.NotifyParticipantProjectUpcoming;

            NotifyOrganizerUserApplied = user.NotifyOrganizerUserApplied;
            NotifyParticipantApplicationApproved = user.NotifyParticipantApplicationApproved;
            NotifyOrganizerIdeaApproved = user.NotifyOrganizerIdeaApproved;

            NotifyAuthorNewsCommented = user.NotifyAuthorNewsCommented;
        }
    }
}